﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL.EntitiesBLL
{
    using System.Data;

    public class TKBBLL : DAL.EntitesDAL.TKBDAL
    {
        public bool Check_TKB(DateTime _ngayhoc, string _maca, string _lophoc)
        {
            DataTable dtb = Select(_ngayhoc, _maca, _lophoc);
            if (dtb.Rows.Count > 0)
                return false;
            return true;
        }

        public bool Check_TKB_phong(DateTime _ngayhoc, string _maca, string _phong)
        {
            DataTable dtb = Select_phong(_ngayhoc, _maca, _phong);
            if (dtb.Rows.Count > 0)
                return false;
            return true;
        }

    }
}
